package co.yixiang.yshop.module.tables.controller.admin.reservation.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;

import static co.yixiang.yshop.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
* 预约记录 Base VO，提供给添加、修改、详细的子 VO 使用
* 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
*/
@Data
public class ReservationBaseVO {

    @Schema(description = "预约的餐桌ID",  example = "1")
    @NotNull(message = "预约的餐桌ID不能为空")
    private Integer tableId;

    @Schema(description = "预约人姓名", required = true, example = "张三")
    @NotNull(message = "预约人姓名不能为空")
    private String customerName;

    @Schema(description = "预约人联系电话")
    private String contactNumber;

    @Schema(description = "预约时间", required = true)
    @NotNull(message = "预约时间不能为空")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime reservationTime;

    @Schema(description = "用餐人数", required = true)
    @NotNull(message = "用餐人数不能为空")
    private Short numberOfGuests;

    @Schema(description = "预约状态（1:已确认, 2:已取消, 3:待确认）", required = true, example = "2")
    @NotNull(message = "预约状态（1:已确认, 2:已取消, 3:待确认）不能为空")
    private Byte reservationStatus;

    @Schema(description = "支付状态（1:已支付, 2:未支付, 3:部分支付）", required = true, example = "1")
    @NotNull(message = "支付状态（1:已支付, 2:未支付, 3:部分支付）不能为空")
    private Byte paymentStatus;

    @Schema(description = "预约备注信息（如特殊要求、优惠券使用等）")
    private String notes;

}
